import React, { Component } from 'react';
import { getCarList } from '../api/index'

import './contact.scss'



export default  class Contact extends Component {

    getList() {
        getCarList({page:'1'}).then((res)=>console.log(res))
    }
    render() {
        return (
            <div className='contact'>
                <div className="container">
                    <h3 className="center"> Contact页面</h3>
                    <p>欢迎来到联系我们页面！</p>
                    <button onClick={this.getList}>获取数据</button>
                </div>
            </div>
        )
    }
}